package com.example.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("`order`")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer storeId;
    private Integer goodId;
    @TableField("`status`")
    private String status;  // 未支付    已支付   已确认  已退款
    private Integer userId;

    @TableField(exist = false)
    private store store;
    @TableField(exist = false)
    private Goods goods;
}








